package com.zhtx.debt.customer.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户附件
 */
@Data
@Table(name = "zs_customer_attach")
@Entity
public class ZsCustomerAttach implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @Column(name = "id", insertable = false, nullable = false)
    private String id;

    /**
     * 客户版本ID
     */
    @Column(name = "customer_version_id", nullable = false)
    private String customerVersionId;

    /**
     * 附件名称
     */
    @Column(name = "attach_name", nullable = false)
    private String attachName;

    /**
     * 附件地址
     */
    @Column(name = "attach_path", nullable = false)
    private String attachPath;

    /**
     * 附件类型 0 客户附件
     */
    @Column(name = "attach_type", nullable = false)
    private Integer attachType;

    /**
     * 文件类型
     */
    @Column(name = "file_type", nullable = false)
    private String fileType;

    /**
     * 创建人ID
     */
    @Column(name = "create_by", nullable = false)
    private String createBy;

    /**
     * 创建人姓名
     */
    @Column(name = "create_name")
    private String createName;

    /**
     * 创建时间
     */
    @Column(name = "create_date")
    private LocalDateTime createDate;

    /**
     * 修改人ID
     */
    @Column(name = "update_by")
    private String updateBy;

    /**
     * 修改人姓名
     */
    @Column(name = "update_name")
    private String updateName;

    /**
     * 修改时间
     */
    @Column(name = "update_date")
    private LocalDateTime updateDate;

    
}